package org.csu.sei.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;
import org.csu.sei.entity.News;
import org.springframework.stereotype.Repository;

@Repository
public interface NewsMapper extends BaseMapper<News> {
    @Update("UPDATE news SET news_status=#{news_s} WHERE cat_id = #{cat_id}")
    int changeStatusBySql(int news_s,long cat_id);

}
